<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://cdn.bootcss.com/vue/2.5.17/vue.js"></script>
<script>
  let EventBus = new Vue();
  EventBus.$on("customEvent", name => {
    console.log(name);
  })
  EventBus.$emit("customEvent", 'ahhh')
</script>
</body>
</html>
